package zijikande;

public class MyStack {
	int idx=0;
	char[] data= new char[6];
	public synchronized void push(char c){
		data[idx]=c;
	}
	public synchronized char pop(){
		idx--;
		return data[idx];
	}
}
